import { requestWeChat } from '@/utils/request'
const { get } = requestWeChat
const service = '/keywordGroup'

/** 获取关键词拉群详情
 * @param {*} keywordGroupId
 * @param {*} unionId
 * @returns
 */
export const getDetail = (keywordGroupId, unionId = sessionStorage.unionId) =>
  get(`${service}/getBaseInfo`, { keywordGroupId, unionId })

/** 获取关键词拉群详情中关键词拉群列表
 * @param {*} keywordGroupId
 * @param {*} keyword
 * @returns
 */
export const getDetailList = (data) => get(`${service}/findGroupSubs`, data)
